#include "MyWindows.h"

MyWindows::MyWindows(void)
{
}

MyWindows::~MyWindows(void)
{
}

void MyWindows::createWindow()
{
	//define and fill a window class
	WNDCLASSEX myWindowClass;

	myWindowClass.cbSize=sizeof(WNDCLASSEX);
	myWindowClass.style=CS_HREDRAW|CS_VREDRAW;
	myWindowClass.lpfnWndProc=(WNDPROC)WndProc;
	myWindowClass.cbClsExtra=0;
	myWindowClass.cbWndExtra=0;
	myWindowClass.hInstance=hInstance;
	myWindowClass.hIcon=0;
	myWindowClass.hCursor=LoadCursor(NULL,IDC_ARROW);
	myWindowClass.hbrBackground=(HBRUSH)(COLOR_WINDOW+1);
	myWindowClass.lpszMenuName=0;
	myWindowClass.lpszClassName="MyWindowClass";
	myWindowClass.hIconSm=0;

	//register the window class
	RegisterClassEx(windowClass);

	//create the window
	m_hWnd=CreateWindow("MyWindowClass", "DIRECTX | GAMES SOFTWARE DEVELOPMENT 2", WS_OVERLAPPEDWINDOW, 
		CW_USEDEFAULT, CW_USEDEFAULT, width, height, NULL, NULL, hInstance, NULL);
	if(m_hWnd==0)
		return false;

	UpdateWindow(m_hWnd);
	ShowWindow(m_hWnd, 0);
}

void MyWindows::display()
{

}